<template>
	<div>
		<carousel></carousel>
		
		<div class="word">为你找到"{{this.$route.query.label}}"的搜索结果</div>
		<div class="num">{{this.$store.state.gallery_arr.length}}条相关结果</div>
		<gallery></gallery>
	</div>
</template>

<script>
	import {mapState} from 'vuex';
	import gallery from '../components/gallery.vue';
	import carousel from '../components/carousel.vue';
	export default {
		computed:{
			...mapState(['search_result'])
		},
		data(){
			return{
				search_res:[],
				search_word:'大萨达撒',
			}
		},
		created() {
			// this.$bus.$on('tran_input_val',function(res){
			// 	console.log(res);
			// 	this.search_word = '’';
			// 	console.log(this.search_word)
			// })
		},
		mounted() {
			this.search_res = this.search_result.slice(0,30);

			
		},
		components:{
			gallery,
			carousel,
		}
	}
</script>

<style lang="scss" scoped>
	.word,.num{
		font-family: "microsoft yahei";
		font-weight: 600;
	}
</style>